package com.wulaobo.partition;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @Author wuwenbo
 * @Date 2024/5/24 9:23
 * @ClassName: ShuffleExample
 * @Description: TODO
 */
public class GlobalExample {

    public static void main(String[] args) throws Exception {

        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        env.setParallelism(4);

        DataStreamSource<String> stream = env.socketTextStream("111.229.26.142", 7777);

        stream.global().print();

        env.execute();
    }
    
}
